import request from '@/utils/request'
import requestMock from '@/utils/requestMock'
// export function login(username, password, code, uuid) {
//     return request({
//         url: '/api/auth/login',
//         method: 'post',
//         data: {
//             username,
//             password,
//             code,
//             uuid
//         }
//     })
// }
export function login(username, password) {
    return request({
        url: '/api/Auth/Token?'+'username='+username+'&password='+password,
        method: 'get'
    })
}

// export function getCodeImg() {
//     return request({
//         url: '/auth/code',
//         method: 'get'
//     })
// }

export function logout() {
    return request({
        url: '/auth/logout',
        method: 'delete'
    })
}
export function mobileLogin(username, password) {
    return request({
        url: '/auth/mobileLogin',
        method: 'post',
        data: {
            username,
            password
        }
    })
}

export function getInfo() {
    return request({
        url: '/auth/info',
        method: 'get'
    })
}
